sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_20%_gain_ptPowToDot1_20141015 <(join UPP-5_20%_tier1_cost_ptPowToDot1_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_20%_gain_cost_ratio_20141015_ptPowToDot1_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_30%_gain_ptPowToDot1_20141015 <(join UPP-5_30%_tier1_cost_ptPowToDot1_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_30%_gain_cost_ratio_20141015_ptPowToDot1_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_40%_gain_ptPowToDot1_20141015 <(join UPP-5_40%_tier1_cost_ptPowToDot1_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_40%_gain_cost_ratio_20141015_ptPowToDot1_sortedByGainCostRatio

sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_20%_gain_ptPowToDot3_20141015 <(join UPP-5_20%_tier1_cost_ptPowToDot3_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_20%_gain_cost_ratio_20141015_ptPowToDot3_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_30%_gain_ptPowToDot3_20141015 <(join UPP-5_30%_tier1_cost_ptPowToDot3_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_30%_gain_cost_ratio_20141015_ptPowToDot3_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_40%_gain_ptPowToDot3_20141015 <(join UPP-5_40%_tier1_cost_ptPowToDot3_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_40%_gain_cost_ratio_20141015_ptPowToDot3_sortedByGainCostRatio

sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_20%_gain_ptPowToDot5_20141015 <(join UPP-5_20%_tier1_cost_ptPowToDot5_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_20%_gain_cost_ratio_20141015_ptPowToDot5_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_30%_gain_ptPowToDot5_20141015 <(join UPP-5_30%_tier1_cost_ptPowToDot5_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_30%_gain_cost_ratio_20141015_ptPowToDot5_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_40%_gain_ptPowToDot5_20141015 <(join UPP-5_40%_tier1_cost_ptPowToDot5_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_40%_gain_cost_ratio_20141015_ptPowToDot5_sortedByGainCostRatio
exit

#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_50%_gain_ptPowTo0_20141015 <(join UPP-5_50%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_50%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_60%_gain_ptPowTo0_20141015 <(join UPP-5_60%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_60%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_70%_gain_ptPowTo0_20141015 <(join UPP-5_70%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_70%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_80%_gain_ptPowTo0_20141015 <(join UPP-5_80%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_80%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_90%_gain_ptPowTo0_20141015 <(join UPP-5_90%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_90%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
exit

sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_20%_gain_ptPowTo0_20141015 <(join UPP-5_20%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_20%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_30%_gain_ptPowTo0_20141015 <(join UPP-5_30%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_30%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_40%_gain_ptPowTo0_20141015 <(join UPP-5_40%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_40%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
exit

sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_1%_gain_ptPowToDot1_20141015 <(join UPP-5_1%_tier1_cost_ptPowToDot1_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_1%_gain_cost_ratio_20141015_ptPowToDot1_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_5%_gain_ptPowToDot1_20141015 <(join UPP-5_5%_tier1_cost_ptPowToDot1_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_5%_gain_cost_ratio_20141015_ptPowToDot1_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_10%_gain_ptPowToDot1_20141015 <(join UPP-5_10%_tier1_cost_ptPowToDot1_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_10%_gain_cost_ratio_20141015_ptPowToDot1_sortedByGainCostRatio

sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_1%_gain_ptPowToDot3_20141015 <(join UPP-5_1%_tier1_cost_ptPowToDot3_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_1%_gain_cost_ratio_20141015_ptPowToDot3_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_5%_gain_ptPowToDot3_20141015 <(join UPP-5_5%_tier1_cost_ptPowToDot3_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_5%_gain_cost_ratio_20141015_ptPowToDot3_sortedByGainCostRatio
sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_10%_gain_ptPowToDot3_20141015 <(join UPP-5_10%_tier1_cost_ptPowToDot3_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_10%_gain_cost_ratio_20141015_ptPowToDot3_sortedByGainCostRatio
exit

#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_1%_gain_ptPowTo0_20141015 <(join UPP-5_1%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_1%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_5%_gain_ptPowTo0_20141015 <(join UPP-5_5%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_5%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_10%_gain_ptPowTo0_20141015 <(join UPP-5_10%_tier1_cost_ptPowTo0_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_10%_gain_cost_ratio_20141015_ptPowTo0_sortedByGainCostRatio
#
#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_1%_gain_ptPowToDot5_20141015 <(join UPP-5_1%_tier1_cost_ptPowToDot5_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_1%_gain_cost_ratio_20141015_ptPowToDot5_sortedByGainCostRatio
#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_5%_gain_ptPowToDot5_20141015 <(join UPP-5_5%_tier1_cost_ptPowToDot5_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_5%_gain_cost_ratio_20141015_ptPowToDot5_sortedByGainCostRatio
#sort --key=6 -g -r <(awk '{print $1,$2,$3,$4,$5,($3-$2)/$5}' <(join UPP-5_10%_gain_ptPowToDot5_20141015 <(join UPP-5_10%_tier1_cost_ptPowToDot5_20141015 UPP-5_FULL_tier2_cost_20141015) ) ) > UPP-5_10%_gain_cost_ratio_20141015_ptPowToDot5_sortedByGainCostRatio
